package student.aistar.model.entity;


import java.sql.Timestamp;

public class TVideo {

  private Integer id;
  private String title;
  private java.sql.Timestamp createDate;
  private Double price;
  private String videoUrl;
  private long userId;

  public TVideo() {
  }

  public TVideo(Integer id, String title, Timestamp createDate, Double price, String videoUrl, long userId) {
    this.id = id;
    this.title = title;
    this.createDate = createDate;
    this.price = price;
    this.videoUrl = videoUrl;
    this.userId = userId;
  }

  public long getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public java.sql.Timestamp getCreateDate() {
    return createDate;
  }

  public void setCreateDate(java.sql.Timestamp createDate) {
    this.createDate = createDate;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(Double price) {
    this.price = price;
  }


  public String getVideoUrl() {
    return videoUrl;
  }

  public void setVideoUrl(String videoUrl) {
    this.videoUrl = videoUrl;
  }


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("TVideo{");
    sb.append("id=").append(id);
    sb.append(", title='").append(title).append('\'');
    sb.append(", createDate=").append(createDate);
    sb.append(", price=").append(price);
    sb.append(", videoUrl='").append(videoUrl).append('\'');
    sb.append(", userId=").append(userId);
    sb.append('}');
    return sb.toString();
  }
}
